I. Study 1, WWW-World Wide Web what is WWW?
www (World Wide web)
The World Wide Web is often referred to as
The web is a network of computers all over the world
All computers in the WEB can communicate with each other
All of
Some DOM object methodsHere are some common ways you'll learn in this tutorial:
method
description
getelementbyid ()
Returns the element with the specified ID.
getelementsbytagname ()
Definition and usage The replace () method is used to replace other characters with some characters in a string, or replace a substring that matches a regular expression.Syntax StringObject. replace (regexp, replacement)Parameter descriptionRegexp
Document directory
JavaScript indexOf () method
JavaScript substring () method
JavaScript split () method
JavaScript replace () method
JavaScript indexOf () method definition and usage
The indexOf () method returns the position of the first
Definition and UsageThe replace () method is used to replace other characters with some characters in a string, or to replace a substring that matches a regular expression.Stringobject.replace (regexp/substr,replacement)
Parameters
From: http://www.w3school.com.cn/jsref/jsref_replace.aspDefinition and usageThe replace () method is used to replace other characters with some characters in a string, or to replace a substring that matches a regular
The indexOf () method returns the position of the first occurrence of a specified string value in a stringNote:the IndexOf () method is case-sensitive! If the string value that you want to retrieve does not appear, the method
Key two parts of the knowledge point
1. JavaScript replace () function usage
The following replace usage is reproduced from w3cschool:http://www.w3school.com.cn/jsref/jsref_replace.asp
Definitions and Usage
The replace () method replaces some
Definitions and Usage The replace () method replaces some characters in a string with some other characters, or replaces a substring that matches a regular expression. Grammar Stringobject.replace (regexp,replacement) Parameter descriptionRegExp
Definitions and usage
The replace () method replaces some characters in a string with some other characters, or replaces a substring that matches a regular expression.
Stringobject.replace (regexp/substr,replacement)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.